<#assign tableid=auth.getuuid()>
<#assign formid=auth.getuuid()>
<div class="bjui-pageHeader">
	<form id="pagerForm" data-toggle="ajaxsearch" action="${rootpath}/Flow/get_user?ids=${ids}&names=${names}" method="post">
        <input type="hidden" name="pageSize" value="${(page.pageSize)!15}">
        <input type="hidden" name="pageCurrent" value="${(page.pageCurrent)!1}">
        <input type="hidden" name="orderField" value="${(page.orderField)!}">
        <input type="hidden" name="orderDirection" value="${(page.orderDirection)!}">
        
        <div class="bjui-searchBar">
            <label>姓名：</label><input type="text" value="${name!}" name="name" size="15" />&nbsp;
            <label>工号：</label><input type="text" value="${no!}" name="no" size="15" />&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <!-- <a class="btn btn-orange" href="javascript:;" onclick="$(this).navtab('reloadForm', true)" data-icon="undo">清空查询</a>&nbsp; -->
            <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a>&nbsp;
            <div class="pull-right">
            	<input type="checkbox" name="lookupType" value="0" data-toggle="icheck" data-label="追加">
                <button type="button" class="btn-blue" data-toggle="lookupback" data-lookupid="ids" data-warn="请至少选择一项" data-icon="check-square-o">选择选中</button>
            </div>
        </div>
        
    </form>
</div>
<div class="bjui-pageContent">
    <table data-toggle="tablefixed">
        <thead>
            <tr>
                <th data-order-field="no">工号</th>
                <th data-order-field="name">姓名</th>
                <th width="28"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
                <th width="74">操作</th>
            </tr>
        </thead>
        <tbody>
             <#if (page.pageData)?exists>
	                <#list page.pageData as item>
	                	<#if item?exists>
				            <tr>
				                <td>${item.no}</td>
				                <td>${item.name}</td>
				                <td><input type="checkbox" name="ids" data-toggle="icheck" value="{${ids}:'${item.id}', ${names}:'${item.name}'}"></td>
				                <td>
				                    <a href="javascript:;" data-toggle="lookupback" data-args="{${ids}:'${item.id}', ${names}:'${item.name}'}" class="btn btn-blue" title="选择本项" data-icon="check">选择</a>
				                </td>
				            </tr>
			            </#if>
		            </#list>
	            </#if>
        </tbody>
    </table>
    <div class="bjui-pageFooter">
		<div class="pages">
			<span>每页&nbsp;</span>
			<div class="selectPagesize">
				<select data-toggle="selectpicker" data-defval="${page.pageSize!}" data-toggle-change="changepagesize" >
		    		<option value="15">15</option>
		        	<option value="30">30</option>
		        	<option value="50">50</option>
		        	<option value="100">100</option>
		    	</select>
			</div>
			<span>&nbsp;条，共 ${(page.totalRow)!0} 条</span>
		</div>
		<div class="pagination-box" data-toggle="pagination" data-total="${(page.totalRow)!0}" data-page-size="${(page.pageSize)!15}" data-page-current="${(page.pageCurrent)!1}">
		</div>
	</div>
</div>




